import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
import login from '../views/user/login'

Vue.use(VueRouter)

const routes =[
  {
    path: '/',
    name: 'Home',
    component: index
  },
  {
    path: '/login',
    name:'login',
    component: login
  }

]

const router = new VueRouter({
  mode:'history',
  routes
})

export default router
